package com.rong.ORM;

import java.util.Date;

import com.rong.DAO.ZynCarDAO;
import com.rong.DAO.ZynCompanyDAO;

/**
 * ZynPrice34 entity. @author MyEclipse Persistence Tools
 */

public class ZynPrice34 implements java.io.Serializable {

	ZynCompanyDAO comDao=new ZynCompanyDAO();
	ZynCarDAO carDao=new ZynCarDAO();
	// Fields

	private Integer id;
	private Integer carId;
	private String carNum;
	private Integer comIdA;
	private String comNameA;
	private Integer comIdB;
	private String comNameB;
	private Double priceTrafc;
	private String stmtStyleTrafc;
	private String unitTrafc;
	private Double priceSell;
	private String stmtStyleSell;
	private String unitSell;
	private Date invalidationDate;
	private String remark;
	private String extAttr1;
	private String extAttr2;
	private String extAttr3;
	private String extAttr4;
	private String extAttr5;
	private String extAttr6;
	private String extAttr7;
	private String extAttr8;

	private ZynCar  carObj;
	private ZynCompany comObj;
	private ZynCompany comObjC;
	// Constructors

	/** default constructor */
	public ZynPrice34() {
	}

	/** full constructor */
	public ZynPrice34(Integer carId,String carNum,String comNameA,String comNameB, Integer comIdA, Integer comIdB,
			Double priceTrafc, String stmtStyleTrafc, String unitTrafc,
			Double priceSell, String stmtStyleSell, String unitSell,
			Date invalidationDate,String remark, String extAttr1, String extAttr2, String extAttr3,
			String extAttr4, String extAttr5, String extAttr6, String extAttr7,
			String extAttr8,ZynCar  carObj,ZynCompany comObj,ZynCompany comObjC) {
		this.carId = carId;
		this.carNum=carNum;
		this.comIdA = comIdA;
		this.comNameA = comNameA;
		this.comNameB = comNameB;
		this.comIdB = comIdB;
		this.priceTrafc = priceTrafc;
		this.stmtStyleTrafc = stmtStyleTrafc;
		this.unitTrafc = unitTrafc;
		this.priceSell = priceSell;
		this.stmtStyleSell = stmtStyleSell;
		this.unitSell = unitSell;
		this.remark = remark;
		this.invalidationDate = invalidationDate;
		this.extAttr1 = extAttr1;
		this.extAttr2 = extAttr2;
		this.extAttr3 = extAttr3;
		this.extAttr4 = extAttr4;
		this.extAttr5 = extAttr5;
		this.extAttr6 = extAttr6;
		this.extAttr7 = extAttr7;
		this.extAttr8 = extAttr8;
		this.comObj = comObj;
		this.comObjC= comObjC;
		this.carObj= carObj;
	}

	// Property accessors

	
	public Integer getId() {
		return this.id;
	}

	/**
	 * @return the carNum
	 */
	public String getCarNum() {
		return carNum;
	}

	/**
	 * @param carNum the carNum to set
	 */
	public void setCarNum(String carNum) {
		this.carNum = carNum;
	}

	/**
	 * @return the comNameA
	 */
	public String getComNameA() {
		return comNameA;
	}

	/**
	 * @param comNameA the comNameA to set
	 */
	public void setComNameA(String comNameA) {
		this.comNameA = comNameA;
	}

	/**
	 * @return the comNameB
	 */
	public String getComNameB() {
		return comNameB;
	}

	/**
	 * @param comNameB the comNameB to set
	 */
	public void setComNameB(String comNameB) {
		this.comNameB = comNameB;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getCarId() {
		return this.carId;
	}

	public void setCarId(Integer carId) {
		this.carId = carId;
		this.setCarNum(carDao.findById(this.carId).getNum());
	}

	public Integer getComIdA() {
		return this.comIdA;
	}

	public void setComIdA(Integer comIdA) {
		this.comIdA = comIdA;
		this.setComNameA(comDao.findById(this.comIdA).getComName());
	}

	public Integer getComIdB() {
		return this.comIdB;
	}

	public void setComIdB(Integer comIdB) {
		this.comIdB = comIdB;
		this.setComNameB(comDao.findById(this.comIdB).getComName());
	}

	public Double getPriceTrafc() {
		return this.priceTrafc;
	}

	public void setPriceTrafc(Double priceTrafc) {
		this.priceTrafc = priceTrafc;
	}

	public String getStmtStyleTrafc() {
		return this.stmtStyleTrafc;
	}

	public void setStmtStyleTrafc(String stmtStyleTrafc) {
		this.stmtStyleTrafc = stmtStyleTrafc;
	}

	public String getUnitTrafc() {
		return this.unitTrafc;
	}

	public void setUnitTrafc(String unitTrafc) {
		this.unitTrafc = unitTrafc;
	}

	public Double getPriceSell() {
		return this.priceSell;
	}

	public void setPriceSell(Double priceSell) {
		this.priceSell = priceSell;
	}

	public String getStmtStyleSell() {
		return this.stmtStyleSell;
	}

	public void setStmtStyleSell(String stmtStyleSell) {
		this.stmtStyleSell = stmtStyleSell;
	}

	public String getUnitSell() {
		return this.unitSell;
	}

	public void setUnitSell(String unitSell) {
		this.unitSell = unitSell;
	}

	public String getRemark() {
		return this.remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	/**
	 * @return the invalidationDate
	 */
	public Date getInvalidationDate() {
		return invalidationDate;
	}

	/**
	 * @param invalidationDate the invalidationDate to set
	 */
	public void setInvalidationDate(Date invalidationDate) {
		this.invalidationDate = invalidationDate;
	}

	public String getExtAttr1() {
		return this.extAttr1;
	}

	public void setExtAttr1(String extAttr1) {
		this.extAttr1 = extAttr1;
	}

	public String getExtAttr2() {
		return this.extAttr2;
	}

	public void setExtAttr2(String extAttr2) {
		this.extAttr2 = extAttr2;
	}

	public String getExtAttr3() {
		return this.extAttr3;
	}

	public void setExtAttr3(String extAttr3) {
		this.extAttr3 = extAttr3;
	}

	public String getExtAttr4() {
		return this.extAttr4;
	}

	public void setExtAttr4(String extAttr4) {
		this.extAttr4 = extAttr4;
	}

	public String getExtAttr5() {
		return this.extAttr5;
	}

	public void setExtAttr5(String extAttr5) {
		this.extAttr5 = extAttr5;
	}

	public String getExtAttr6() {
		return this.extAttr6;
	}

	public void setExtAttr6(String extAttr6) {
		this.extAttr6 = extAttr6;
	}

	public String getExtAttr7() {
		return this.extAttr7;
	}

	public void setExtAttr7(String extAttr7) {
		this.extAttr7 = extAttr7;
	}

	public String getExtAttr8() {
		return this.extAttr8;
	}

	public void setExtAttr8(String extAttr8) {
		this.extAttr8 = extAttr8;
	}

	/**
	 * @return the carObj
	 */
	public ZynCar getCarObj() {
		return carObj;
	}

	/**
	 * @param carObj the carObj to set
	 */
	public void setCarObj(ZynCar carObj) {
		this.carObj = carObj;
	}

	/**
	 * @return the comObj
	 */
	public ZynCompany getComObj() {
		return comObj;
	}

	/**
	 * @param comObj the comObj to set
	 */
	public void setComObj(ZynCompany comObj) {
		this.comObj = comObj;
	}

	/**
	 * @return the comObjC
	 */
	public ZynCompany getComObjC() {
		return comObjC;
	}

	/**
	 * @param comObjC the comObjC to set
	 */
	public void setComObjC(ZynCompany comObjC) {
		this.comObjC = comObjC;
	}

}